package com.tianqu.tms.core.webservice.weichat.api.rpc.userservice;

public class UserServiceProxy implements UserService_PortType {
  private String _endpoint = null;
  private UserService_PortType userService_PortType = null;
  
  public UserServiceProxy() {
    _initUserServiceProxy();
  }
  
  public UserServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initUserServiceProxy();
  }
  
  private void _initUserServiceProxy() {
    try {
      userService_PortType = (new UserService_ServiceLocator()).getUserServiceSoap();
      if (userService_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)userService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)userService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (userService_PortType != null)
      ((javax.xml.rpc.Stub)userService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public UserService_PortType getUserService_PortType() {
    if (userService_PortType == null)
      _initUserServiceProxy();
    return userService_PortType;
  }
  
  public int memberAdd(java.lang.String memberId, java.lang.String realName, java.lang.String shortName, java.lang.String marketNo) throws java.rmi.RemoteException{
    if (userService_PortType == null)
      _initUserServiceProxy();
    return userService_PortType.memberAdd(memberId, realName, shortName, marketNo);
  }
  
  public int attnAdd(java.lang.String attnId, java.lang.String memberId, java.lang.String attnName, java.lang.String accessCardId, java.lang.String accessCardNo) throws java.rmi.RemoteException{
    if (userService_PortType == null)
      _initUserServiceProxy();
    return userService_PortType.attnAdd(attnId, memberId, attnName, accessCardId, accessCardNo);
  }
  
  public int memberUpdateCarPort(java.lang.String memberId, int carPort) throws java.rmi.RemoteException{
    if (userService_PortType == null)
      _initUserServiceProxy();
    return userService_PortType.memberUpdateCarPort(memberId, carPort);
  }
  
  public int memberUpdateAccessCardInfo(java.lang.String memberId, java.lang.String accessCardId, java.lang.String accessCardNo) throws java.rmi.RemoteException{
    if (userService_PortType == null)
      _initUserServiceProxy();
    return userService_PortType.memberUpdateAccessCardInfo(memberId, accessCardId, accessCardNo);
  }
  
  public int attnUpdateAccessCardInfo(java.lang.String attnId, java.lang.String accessCardId, java.lang.String accessCardNo) throws java.rmi.RemoteException{
    if (userService_PortType == null)
      _initUserServiceProxy();
    return userService_PortType.attnUpdateAccessCardInfo(attnId, accessCardId, accessCardNo);
  }
  
  public int integralRegister(java.lang.String memberId, int memberType, java.lang.String serial, java.lang.String licensePlate, int chargeType, int transferPrice, int integral) throws java.rmi.RemoteException{
    if (userService_PortType == null)
      _initUserServiceProxy();
    return userService_PortType.integralRegister(memberId, memberType, serial, licensePlate, chargeType, transferPrice, integral);
  }
  
  
}